#include<stdio.h>
int Check(int h,int w)
{
    float standard = 2*(h-100)*0.9;
    float differ = w-standard;
    int flag = 1;
    if(differ<0)
    {
        differ = -differ;
        flag = 0;
    }
    float s = standard*0.1;
    if(differ<s)
    {
        return 0;
    }
    if(flag)
    {
        return 1;
    }
    else
    {
        return -1;
    }
}
int main()
{
    int n = 0;
    scanf("%d",&n);
    int i = 0;
    int arr[40]={0};
    for(i=0;i<2*n;i+=2)
    {
        getchar();
        scanf("%d %d",&arr[i],&arr[i+1]);
    }
    int flag = 0;
    for(i=0;i<2*n;i+=2)
    {
        flag = Check(arr[i],arr[i+1]);
        if(flag==0)
        {
            printf("You are wan mei!\n");
        }
        if(flag==1)
        {
            printf("You are tai pang le!\n");
        }
        if(flag==-1)
        {
            printf("You are tai shou le!\n");
        }
    }
    return 0;
}